package cn.com.shopec.erp.financing.commo;

import java.util.Date;

import cn.com.shopec.erp.common.utils.DateUtil;
import cn.com.shopec.erp.common.utils.RandomUtil;

public class NoUtils {
	/**
	 * 生成运费单号 
	 * @return  
	 * @throws 
	 */
	public static String genFreOrderNo() {
	//TODO 
	String no = "LG" + DateUtil.formatDateByFormat(new Date(), DateUtil.NOCHAR_PATTERN) + RandomUtil.getRandomNumberStr(5);

	return no;
	}
	
	
	/**
	 * 生成代收结算单号
	 * @return  
	 * @throws 
	 */
	public static String genCollectInfoNo() {
	//TODO 
		String no = "COD" + DateUtil.formatDateByFormat(new Date(), DateUtil.NOCHAR_PATTERN) + RandomUtil.getRandomNumberStr(5);
		return no;
	}
	
	/**
	 * 生成代销单号
	 * @return  
	 * @throws 
	 */
	public static String genTblCollemtInfoNo() {
	//TODO 
		String no = "OCB" + DateUtil.formatDateByFormat(new Date(), DateUtil.NOCHAR_PATTERN) + RandomUtil.getRandomNumberStr(5);
		return no;
	}
	
	/**
	 * 生成购销单号
	 * @return  
	 * @throws 
	 */
	public static String genPurchaseSaleNo() {
	//TODO 
		String no = "PSA" + DateUtil.formatDateByFormat(new Date(), DateUtil.NOCHAR_PATTERN) + RandomUtil.getRandomNumberStr(5);
		return no;
	}
	
	/**
	 * 生成仓库号
	 * @return  
	 * @throws 
	 */
	public static String genWhareHouseNo() {
	//TODO 
		String no = "WH" + DateUtil.formatDateByFormat(new Date(), DateUtil.NOCHAR_PATTERN) + RandomUtil.getRandomNumberStr(5);
		return no;
	}
	
	
	/**
	 *退货记录 
	 * @return  
	 * @throws 
	 */
	public static String genReturnEntityNo() {
	//TODO 
		String no = "RE" + DateUtil.formatDateByFormat(new Date(), DateUtil.NOCHAR_PATTERN) + RandomUtil.getRandomNumberStr(5);
		return no;
	}
	/**
	 *入库记录 
	 * @return  
	 * @throws 
	 */
	public static String genWHEntityNo() {
	//TODO 
		String no = "WE" + DateUtil.formatDateByFormat(new Date(), DateUtil.NOCHAR_PATTERN) + RandomUtil.getRandomNumberStr(5);
		return no;
	}
}
